package com.txra.txramall.order.service;


import java.util.List;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.txra.txramall.order.entity.OrderEntity;

@FeignClient(name = "txramall-order")
public interface OrderServiceApi{

	@RequestMapping(value = "/order/findOrderByUserId/{userId}", method = RequestMethod.GET)
    @ResponseBody
    List<OrderEntity>  listByUserId(@PathVariable("userId") Integer userId);
    
}

